// this file was added from scratch to the project by Josh Latvatalo
#include <iostream>
#include <sstream>
#include <string>
using namespace std;

#ifndef DATE_H_
#define DATE_H_

class Date{
	int year,month,day;
	bool date_valid(int y, int m, int d);
public:
	Date(int y, int m, int d);
	Date();
	string display_date();

	//Ecky C3
	inline friend std::istream& operator>> (std::istream& in, Date& oi) 
	{ 
        return in >> oi.year >> oi.month >> oi.day; 
    }

	//Ecky C3
    inline friend std::ostream& operator<< (std::ostream& os, Date const& oi) 
	{ 
        return os << oi.year << " " << oi.month << " " << oi.day;
    }
};

#endif
